Systems and methods for a multifactor user identification and authentication framework for in-air-handwriting with hand geometry and deep hashing

ABSTRACT

Various embodiments of a framework for user authentication based on finger motion signal and hand geometry matching are disclosed herein.

CROSS-REFERENCE TO RELATED APPLICATIONS

This is a non-provisional application that claims benefit to U.S. provisional application Ser. No. 62/802,070 filed on Feb. 6, 2019 and U.S. provisional application Ser. No. 62/802,028 filed on Feb. 6, 2019, which are herein incorporated by reference in their entirety.

FIELD

The present disclosure generally relates to a user login framework; and in particular, to a three-dimensional in-the-air finger motion based user login framework for gesture interface which tracks finger motion and hand geometry of the user.

BACKGROUND

Virtual Reality (VR) headsets, wearable computers, and other mobile computing platforms with gesture input inter-face are gaining popularity. Meanwhile, it is necessary to verify the identity of a user to unlock these devices or log in onto a remote “virtual site” to access private data or personalized services. In such an environment, presenting a keyboard or touchscreen is usually impractical, while gesture and hand geometry based authentication would be efficient and favorable. For example, VR game consoles (e.g., Sony PSVR) and wearable computing platforms (e.g., Microsoft Hololens) are operated through a native gesture user interface.

A lot of existing research exploits the rich information in native gestures, and especially, in-air-handwriting, to authenticate a user to access an account. Yet, for a login system, there are two components: user authentication and user identification. The former is equivalent to checking a password, i.e., verify whether the person generating this login request is the legitimate user that owns the account, which is answering “yes” or “no”. The latter is equivalent to type an ID string, i.e., search the account database and locate the target account to login, which is answering “which account do you want to login”. A usually neglected function in existing works with gesture or in-air-handwriting is the user identification. Compared to gesture based user authentication, the user identification task is more challenging due to a few unique characteristics of the gesture. First, gestures have inherent fuzziness. Even if the same user writes the same string in the air twice, the generated two signals are not identical but contain minor variations. Yet, the system should be able to tolerate the fuzziness and identify the two signals as the same user, unlike typing an ID string of characters twice where not a single bit difference is tolerated. Second, it is difficult for many native gestures to provide enough information to enable a large account ID space as well as distinctiveness. Third, given the fuzziness of the gesture, it is challenging to design an efficient index of the gesture patterns of all users or accounts to enable fast identification. Another fact is that hand motion capture methods may also be able to capture hand geometry, which may also be used as a factor to verify user identity.

It is with these observations in mind, among others, that various aspects of the present disclosure were conceived and developed.

BRIEF DESCRIPTION OF THE DRAWINGS

The present patent or application file contains at least one drawing executed in color. Copies of this patent or patent application publication with color drawing(s) will be provided by the Office upon request and payment of the necessary fee.

FIG. 1 is an illustration showing the present authentication framework;

FIG. 2 is a an illustration showing the three-dimensional hand motion tracking as a user writes in the air (left) and hand geometry tracking (right);

FIG. 3 is an example of aligned signals from the captured finger motion and the corresponding generated template;

FIG. 4 is a graphical representation showing signal alignment through a warping path;

FIG. 5 is a graphical representation showing the distribution of the scaled element-wise distance between a signal and its template;

FIG. 6 is a graphical representation showing the distribution of the distances between a signal and its template with respect to the quality of the signal on each axis;

FIG. 7 is a normalized histogram showing the signal level distances over all accounts;

FIG. 8 shows the influence of the number of signals used to build each template;

FIG. 9 is an illustration showing that the lengths of the bones in a user's hand, as well as the widths between each bone, are used to determine hand geometry of the user;

FIG. 10 shows the differences between each individual hand geometry component of the same user, as well as different users;

FIG. 11 is a graphical representation of the distribution of the differences between hand geometry of the same user and the hand geometries of spoof users;

FIG. 12 is a graphical representation of the distribution of false non match rates and false match rates, varying with the set decision thresholds;

FIG. 13 is a graphical representation that illustrates the Receiver Opening Characteristic (ROC) curve;

FIG. 14 is a graphical representation depicting changes of the fused score over the course of ten sessions;

FIG. 15 is an illustration showing the system architecture and procedures for the present system;

FIGS. 16A and 16B illustrate an in-air handwriting signal model and trajectory in three-dimensional space;

FIGS. 17A and 17B are graphical representations showing the effect of the “P” and “Q” terms of the loss function on the projected latent vector;

FIG. 18 is a graphical representation showing the average precision of account identification varying with hash code size and bit tolerance;

FIG. 19 is a graphical representation showing the average recall rate of all accounts varying with hash code size and bit tolerance;

FIG. 20 is a graphical representation showing the misidentification rate of accounts varying with hash code size and bit tolerance;

FIG. 21 is a graphical representation showing the identification failure rate of accounts varying with hash code size and bit tolerance;

FIGS. 22A and 22B are graphical representations showing the distributions of Hamming distances between actual account hash codes and testing signal hash codes;

FIGS. 23A and 23B are graphical representations respectively showing the distributions of bits valued at “zero” and “one” and the correlation of each bit in the hash code, where the hash code size B is 16 bits; and

FIG. 24 is a graphical representation showing the distribution of the account hash code distance, where the column i is the distribution of the hamming distance for all accounts where i≠j.

Corresponding reference characters indicate corresponding elements among the view of the drawings. The headings used in the figures do not limit the scope of the claims.

DETAILED DESCRIPTION

Gesture biometrics are gaining popularity with gesture input interface on mobile and Virtual Reality (VR) platforms that lack a keyboard or touchscreen to type an ID and a password for user login. In the present disclosure, a login system that contains two modules is presented. The first module is a multifactor user authentication method using in-air-handwriting and hand geometry. The second module is a user identification method using deep neural network.

In the present disclosure, a multifactor authentication framework which can identify and authenticate a user by observing the shape of the user's hand and asking the user to write an ID string and a pass-code in the air with the index finger is disclosed. The content of the ID string or pass-code can be a meaningful phrase, a piece of scribbling like a signature, or a doodle as long as it can be easily reproduced by the same user but difficult to mimic by attackers. This piece of in-air-handwriting, as well as the hand geometry, is captured by a depth camera and compared with a template created at registration. For user authentication, three modalities are fused; including a secret (i.e., the passcode), a behavior biometric (i.e., the handwriting convention), and a physiological trait (i.e., the hand geometry) in one unified framework, which provides better security than password based authentication systems. Unlike traditional biometrics such as the fingerprint, iris and face, the gesture passcode used in this framework is revocable.

User identification is essentially indexing and searching the gesture motion templates in a large database efficiently. In the present disclosure, a user identification system that can generate a compact binary hash code from a piece of in-air-handwriting of an ID string is disclosed, which allows fast search in a database of in-air-handwriting templates through a hash table.

To address these problems, the present system is disclosed herein to efficiently obtain a user's account ID from the hand motion of writing an ID string in the air. The present system uses a deep convolutional neural network to convert the in-air-handwriting signal to a compact binary code, and further enables indexing and searching the gesture patterns in the account database with a hash table.

User Authentication System Architecture

The present identification and authentication framework includes five components (FIG. 1): a hand motion tracking device (e.g., Leap Motion controller), an account database, two matching algorithms, and a decision maker which fuses the matching scores and decides whether the authentication request is a match or a non-match.

Hand Motion Tracking Device:

When a user writes in the air, a contactless device captures the motion signal which contains a series of physical states of the hand sampled at a certain rate, such as the position trajectory. In the present system, a Leap Motion controller is used, which is able to provide 3D coordinates of each joint of the hand in sub-millimeter precision at around 110 Hz. Yet, it was discovered that the accuracy of motion tracking signal is not very reliable, e.g., sometimes the motion tracker cannot see the index finger when the hand points in certain directions. It also often misrecognizes a right hand facing with its palm facing downward as a left hand with its palm facing upward. As a result, only the position of the center of the hand is considered. The motion signal is denoted as a matrix R, where each column represents one axis (i.e., x, y or z of position), and each element is an individual sample in an axis at a specific time (denoted as Rij). R is further preprocessed and aligned to a template signal T to obtain an l by d matrix S. d is the number of axes (usually more than 3, as speed and acceleration can be derived using x, y, z from the time-stamped position series), and l is the number of samples (usually from 100 to 500). Besides the motion signal, the device also records a vector h consisting of the length of each bone of the user's hand as well as hand width. Usually, R and h are sent to the authentication server as an authentication request. It should be noted that as long as the hand motion tracking device can provide position samples and geometry of the hand, the disclosed framework can be applied. The matching algorithm disclosed is not restricted to the Leap Motion controller.

Account Database:

Each account in the authentication server is represented by a quad-tuple vector of <ID, T, C, t>. The disclosed framework allows one user to possess multiple accounts (i.e., multiple distinct account IDs). Here, T is the signal template, C is the variance with the same dimension as T, and t is the hand geometry template. T, C and t are all derived from a few preprocessed and aligned example signals {S¹, S², . . . , S^(k)} and example hand geometry vectors {h¹, h², . . . , h^(k)} at registration as follows:

t=mean(h ¹ ,h ² , . . . ,h ^(k)),

T _(ij)=mean(S _(ij) ¹ ,S _(ij) ² , . . . ,S _(ij) ^(k)),

C _(ij)=var(S _(ij) ¹ ,S _(ij) ² , . . . ,S _(ij) ^(k)).

Templates can be updated explicitly by the user or implicitly on a successful authentication attempt S and h to adapt minor changes of user behaviors in the following way:

t→(1−λ)t+λh,

T _(ij)→(1−λ)T _(ij) +λS _(ij),

C _(ij)+(1−λ)C _(ij)+λ(S _(ij) −T _(ij))².

Here, λ is the update rate that controls the influence of the newly accepted signal, determined empirically. C may be updated gradually to very large values if the behavior changes are large, which may need further regularization to keep the decision boundary in the same place. An example of aligned signals and the generated template is shown in FIG. 3.

Matching Algorithms and Score Fusion:

Once the authentication request is received, the server runs the following two matching algorithms in parallel: (1) signal matching, which matches the motion signal R with the stored signal template T with auxiliary information from the variance C, and (2) hand geometry matching, which matches the hand geometry h with the stored hand geometry template t of the account owner. After the results of the two matching algorithms are obtained, the authentication server fuses the results and makes the final decision.

Datasets:

The following three datasets were collected for evaluation:

100 users were asked to create 200 accounts, where each user created exactly two accounts. For each account, the user wrote a passcode in the air five times as the registration and five more times as authentication requests. Among the 100 users, 50 are male, the other 50 are female, and their age spans from 15 to 62. They have various educational backgrounds from middle school students to university professors, and diverse occupations including both office workers and non-office workers. Each user created his or her personal passcode without any constraints on the content or the length, but none of the 200 passcodes were identical. Seven impostors were asked to write each passcode in the first dataset five times as spoofing attacks. The impostors were informed with the content of the passcode.

Additionally, 22 users participating in the first dataset were asked to write the passcodes of the corresponding 44 accounts five times every three or four days, which was denoted as one session. In total there were 10 sessions, lasting for four weeks. This dataset was used in the study of long term stability of these algorithms.

Given an account with template signal T, each testing signal S obtained from the first dataset can be associated with a class label c as “true-user” or “false-user”. If S and T are from the same user writing the correct passcode, c=true-user; otherwise c=false-user. Especially, if S is from the spoofing attack in the second dataset, c=spoof. “false-user” and “spoof” are collectively called “not-true-user”. Without special notification, five signals are used to construct the template.

Matching Algorithm Details

Signal Matching:

The signal matching algorithm defines a distance between the signal in the authentication request and the stored template. It contains four stages: (1) signal preprocessing, (2) signal alignment, (3) element-wise distance scaling, and (4) threshold-then-vote (TTV). The TTV procedure represents the major difference between the disclosed algorithm and traditional DTW algorithm, and hence, the disclosed signal matching algorithm is called the TTV algorithm.

Signal Preprocessing:

To improve signal quality and facilitate matching in later stages, the raw signal obtained from the hand motion capture device goes through the following preprocessing steps:

(1) Fix missing data samples due to the limited capability of the motion capture device by linear interpolation.

(2) Derive velocity and acceleration for each sample from the time-stamped trajectory.

(3) Remove any high frequency components above 10 Hz (low-pass filtering).

(4) Throw away the samples at the start and the end of the signal when the hand stays still.

(5) Translate the coordinate system, i.e., make the average pointing direction of the hand as the x-axis.

(6) Down-sample the signal to 50 Hz.

(7) Normalize each column to zero mean and unit variance.

Signal Alignment:

To accommodate small differences in writing speed, the raw signal R is aligned to the template signal T before matching. First, dynamic time warping is ran on R and T to obtain a warping path, with a window constraint of ±50 samples (i.e., ±1 second). Then each sample Sij of the aligned signal S is calculated by taking the average of a range of samples in the original signal mapped to Tij on the warping path. Unlike most related works, which use DTW to directly calculate distance of two signals, DTW is only employed in the present disclosure for temporal alignment. An example of signal alignment given the warping path is shown in FIG. 4. Here, the signal (1, 2, 3, 4, and 5) is aligned to the template (A, B, C, and D). Given the warping path, A is mapped to 1, B is mapped to 1, C is mapped to 2.5 (i.e., average of 2 and 3), D is mapped to 4.5 (i.e., average of 4 and 5).

Element-Wise Distance Scaling:

After the alignment, element-wise distance D is calculated,

D _(ij) =|S _(ij) −T _(ij)|

and two element-wise scalars P and Q are computed,

P _(ij)=1/(1+p×T _(ij)),

Q _(ij)=1/(1+q×C _(ij)).

Then D is scaled element-wise by P and Q. The logic is that less importance (i.e., more tolerance) should be applied if the template has a larger value (i.e., higher intensity) or a larger variance (i.e., higher uncertainty). This phenomenon is discovered on signals of inertial sensor but it is also applicable to the disclosed framework. p and q are both tweak-able parameters (in the present system p=1, q=0.5) determined by empirical results.

Threshold-Then-Vote (TTV):

Once the scaled element-wise distance is obtained, the beginning 5% and ending 10% of the signal as well as the corresponding parts of the template are trimmed down. Then, the final signal level distance is calculated as follows:

${{dist}\left( {S,T} \right)} = {\frac{1}{l \times d}{\sum\limits_{i}^{l}{\sum\limits_{j}^{d}{{{TTV}\left( {D_{ij} \times P_{ij} \times Q_{ij}} \right)}.}}}}$

Here l is the trimmed template length, and d is the number of sensor axes. TTV(x) is a step function determining whether a single sample point is matched or not, defined as follows:

$\begin{matrix} {{{TTV}(x)} = \left\{ \begin{matrix} {0,} & {{{if}\mspace{14mu} x} \leq {th}_{1}} \\ {0.5,} & {{{if}\mspace{14mu} {th}_{1}} < x \leq {th}_{2}} \\ {1,} & {{{if}\mspace{14mu} x} > {th}_{2}} \end{matrix} \right.} & (1) \end{matrix}$

This stage maps element-wise distance to “match” (i.e., 0), “non-match” (i.e., 1), or “unsure” (i.e., 0.5), then treats each element-wise distance as a “vote”. The insight is to prevent large scarce element-wise distance (i.e., local non-matches) from propagating to the final signal level distance. On the one hand, such local non-matches appear quite often when the signal and the template are obtained from the same user writing the same passcode, which should be tolerated during the decision making stage. On the other hand, signals and templates obtained from different users or from writing different passcodes are different everywhere, and the voting result is likely to be dominated by non-matches even with the tolerance of a few local non-matches.

Analysis:

First, the distribution of the scaled element-wise distance is shown in respect to the rows averaged over all sensor axes and over all accounts, i.e., an approximation of the class-conditional probability

${p\left( {\frac{1}{d}{\sum\limits_{j}^{d}D_{ij}}} \middle| c \right)},$

shown in FIG. 5. It can be observed that local differences between the signal and the template are generally evenly spread along the rows given a large amount of accounts, while the beginning 5% and the ending 10% have anomalies. This is mainly caused by the nature of the alignment algorithm which forces the beginning and the end to be mapped together. For signals and templates generated by the same user, the element-wise distance is smaller than those generated by different users or by writing different passcodes. Still, their distributions overlap between 0.3 and 0.4 (shown as the dashed horizontal lines, which determine the th₁ and th₂ parameters in the TTV algorithm). It can also be observed that for the occasional instances of D_(ij) being greater than 0.4 in the true-user class. These distances are tolerated due to their limited amount of non-match votes, but for those in the false-user class, such large distances dominate the votes.

Second, the distribution of the element-wise distance D_(ij) in respect to the columns averaged over all rows and over all accounts is shown, i.e., an approximation of the class-conditional probability

${p\left( {\frac{1}{l}{\sum\limits_{i}^{l}D_{ij}}} \middle| c \right)},$

shown in FIG. 6. FIG. 6 shows that the quality of the signal in each sensor axis, i.e., larger overlap indicates more difficulty in distinguishing the two classes based on that column. In general, the element-wise distances in the x direction vary greater than other directions even for the same user writing the same passcode. This is reasonable as the way a person writes in the air resembles writing on an invisible surface, and in this case the x axis is defined as the average pointing direction of the index finger. Also the element-wise distances in position columns are more widely spread, implying that human users are better at maintaining the same speed and force (which is equivalent to acceleration) than maintaining the same trajectory.

Third, the normalized histogram of the signal level distances dist(S, T) is shown over all accounts in FIG. 7, i.e., an approximation of the class-conditional probability p(dist(S, T)|c). The overlap between the histograms of different classes denotes the discriminating capability of the signal matching algorithm as a whole according to the Bayes Decision Theory. The disclosed framework of the present system achieves 1.2% overlap between the true-user class and the false-user class, as well as 5.8% overlap between the true-user class and the spoof class. This also shows that different people write the same content in significantly different ways.

Fourth, the influence of the number of signals used to build the template is shown in FIG. 8. Clearly more signals at registration help to construct a better template, but the benefit is marginal. The disclosed framework can achieve acceptable results even with only two signals for template construction.

Hand Geometry Matching:

In the disclosed framework, hand geometry is defined as the length of each bone of the hand (excluding the wrist) as well as the width of the hand collectively, shown in FIG. 9. The bone length features contain 19 components, which are the lengths of metacarpals, proximal phalanges, intermediate phalanges, and distal phalanges of the five fingers on a hand (note that the thumb does not have intermediate phalanges). The hand width features include 3 components, which are the distances between the far ends of metacarpals of two adjacent fingers except the thumb (shown in FIG. 9 as w1, w2, and w3). Collectively, the hand geometry vector h is constructed by these 22 components, as is the hand geometry template t.

If the authentication requester is the account owner, they must have the same hand for writing, and hence, the hand geometry in the request should not differ from the stored hand geometry template significantly. The differences between each individual hand geometry component of the same user as well as different users were measured, shown in FIG. 10. Obviously, the average length differences of different hands are greater than the same hand. However, it is highly possible that two different hands have similar shapes and there is no way to determine whether they are from the same user merely based on the geometry. Also, the hand motion tracking device needs to obtain the hand geometry measurement from the user's hand image in sub-millimeter precision, which is challenging. Thus, each measurement of the same hand will vary slightly, even the sensor itself reports 100% confidence. Another important fact is that all these 22 components have strong correlations, because the five fingers on the same hand grow together. Based on these factors, the hand geometry difference function is defined as follows:

${{dist}\left( {h,t} \right)} = {\frac{1}{22}{\sum\limits_{i}\frac{h_{i} - t_{i}}{t_{i}}}}$

The distribution of dist(h, t) is shown in FIG. 11. In general, hand geometry is considered a weak feature in the decision-making procedure.

Score Fusion:

The final score of an authentication request is calculated by fusing the information from the signal matching and the hand geometry matching as follows:

score=dist(S,T)+w ₁dist(h,t)+w ₂ |l _(T) −l _(R) |l _(T)

Essentially, the final score is a weighted sum of signal level distance, hand geometry difference, and signal length difference, which is the third term |I_(T)−I_(R)|/|I_(T), where I_(T) is the length of the template, and I_(R) is the length of the signal in the authentication request before alignment. Here the two weights w₁ and w₂ are determined empirically (in the present system, w₁=0.4 and w_(2=0.05)). Since hand geometry difference and signal length difference are all weak features, their weights are smaller than 1 and largely depend on the correlation to the signal level distance.

Finally, the disclosed algorithm uses the signal level distance to make the decision, i.e., if the score is below the decision threshold, the request is accepted and hence the user passes authentication; otherwise, the request is rejected and the user fails authentication. The decision threshold is set as a tradeoff between accuracy and convenience. If the decision threshold is small (i.e., strict), legitimate users may be rejected unexpectedly, while if the decision threshold is large (i.e., loose), attackers may be accidentally accepted.

Experimental Evaluation of the Authentication System

Using the fused score described above, experiments were ran on the first and second datasets while varying the decision threshold. Here, EER is defined as the rate when False Non-Match Rate (FNMR) is equal to the False Match Rate (FMR) (also shown in FIG. 12). FMR 10K, FMR 100K, and Zero-FMR are the corresponding FNMRs when FMR is 10⁻⁴, 10⁻⁵, and zero respectively, also shown in the Receiver Operating Characteristic (ROC) curve in FIG. 13

Experiments were also ran on the third dataset and the changes of the fused score over the 10 sessions are shown in FIG. 14. Without a template update, the score of the true-user class had increased to around 1.75 times relative to the first session. However, with a template update of 0.1, the score increase converged to about 1.09 times relative to the first session. This effect is mainly caused by the limited number of sample signals for template construction. A deeper reason may be the inherent complexity of in-air-handwriting, especially considering the writing behavior variation, which is difficult to represent merely with a template built from several example signals. The long-term stability of the authentication performance differs by account, e.g., for most accounts, the score at the first session is far away from the decision threshold and the score increase with time will not generate false non-matches.

The performance improvement of the disclosed framework comes from several aspects. First, the preprocessing steps retain valuable information for authentication and make the matching algorithm robust against poor signal quality and small variation in users' postures. Second, the threshold-then-vote procedure prevents the discriminating capability degradation caused by locally mismatched signal segments, which can be justified by the performance of the TTV algorithm. Third, fusing hand geometry and length difference with the signal level distance further removes many false matches.

User Identification System Architecture

The present user identification system (shown in FIG. 15) includes five components: (1) An in-air-handwriting motion capture device (e.g., a Leap Motion controller in the present implementation); (2) A preprocessing module smoothing and normalizing the captured motion signal; (3) A deep Convolutional Neural Network (CNN) that takes preprocessed motion signal x as input and generate a high dimensional floating point latent vector h (denoted as a function ƒ(x)=h); (4) An additional neural network layer that project the latent vector h to low dimensional space and quantize the projected result to B-bit binary hash code b∈{−1,+1}^(n) (denoted as another function g(h)=b, and B is usually 16, 32, 64, etc.); (5) An account database that stores a hash table index of account tuples <ID, b^(ID), h^(ID)>, where ID is the account ID (usually a unique number generated by the system at registration), where b^(ID) and h^(ID) are the hash code and latent vector corresponding to the account; (6) An optional verification module that runs after an ID is obtained by framework. This ID is a candidate ID. The system can run a procedure similar to the authentication procedure by comparing the in-air-handwriting of the ID string to some information stored in the account referred by the candidate ID, which can further eliminate wrong identification results.

Signal Acquisition and Preprocessing

The in-air-handwriting of an ID string is captured by the Leap Motion controller in the present implementation as a raw signal containing the 3D position coordinates of the center of the palm, sampled at about 110 Hz. Once this raw signal is obtained, the 3D velocity, and 3D acceleration are further obtained by calculating the vector difference of adjacent position samples. Then, the signal is normalized in pointing direction (making the average hand pointing direction as x-axis) and amplitude (mean subtraction and division by standard deviation). Finally, it is resampled to a fixed length of 256 data points in each dimension to form the 256×9 input vector x. Examples of the motion signal and the trajectory of in-air-handwriting are shown in FIGS. 16A and 16B.

Hash Code Generation Method Details

The deep neural network and the additional projection-quantization layer are implemented together and collectively referred to herein as a “framework”. Multiple design goals are desired with the present framework. First, for a pair of in-air-handwriting signals (x₁,x₂), if they are generated by the same user writing the same ID string, the corresponding hash codes (b₁,b₂) should be the same in most cases (or differ only in one or two bits sometimes, due to the fuzziness of the signals); if they are generated from different ID strings (regardless of if the same user or different users are considered), (b₁,b₂) should differ by at least three bits. Second, the neural network should learn contrastive representations h to facilitate the projection. Third, the neural network should be easy to train and fast to converge.

TABLE 1 Framework Architecture layer kernel output #para Input: 256 * 9 conv-pool1 3→1 conv, 2→1 max pool 128 * 48  1.3k  conv-pool2 3→1 conv, 2→1 max pool 64 * 96  14k conv-pool3 3→1 conv, 2→1 max pool 32 * 128 37k conv-pool4 3→1 conv, 2→1 avg pool 16 * 192 74k conv-pool5 3→1 conv, 2→1 avg pool  8 * 256 147k  fc (latent) fully connected 512 1,048k   layer output #para cross-entropy loss softmax 200 102k pairwise loss projection B 512*B

To achieve these goals, the framework has been designed in the following way, as shown in Table 1. First, 5 convolutional and max-pooling layers are applied with simple VGG-like kernel and a fully connected layer to map input signal x to latent vectors h. Both the convolutional layer and the fully connected layer have leaky ReLU activation. Next, the projection layer projects the latent vector h to a space with the same dimension as the final hash code, i.e., z=Wh+c, where z is the projected vector whose size is B. After that, the hash code is generated by taking the sign of the projected vector b_(i)=sign(z_(i)), 1≤i≤B. This is essentially partitioning the latent space by B hyperplanes to obtain at most 2^(B) regions associated with different hash code. Additionally, a softmax layer is added in parallel with the projection layer to help train the neural network.

Training the framework is equivalent to placing all registered accounts into these 2^(B) regions, which is achieved progressively in two main steps. First, the network is trained with the softmax layer and cross-entropy loss to make the filter layers converge. In this step, the projection layer is not activated. Note that the softmax classification layers does not need to contain all accounts if the account number is large, or even an independent dataset for pre-training can be utilized.

Second, the network is trained using the projection layer with the following pairwise loss L, and mini-batches of 2M pairs of signals (x₁ ^((i)), x₂ ^((i))), 1≤i≤2 M. Half of the mini-batch are pairs of signals from the same class (y^((i))=0), and half are pairs of signals from different classes (y^((i))=1).

$\mspace{20mu} {{L = {\frac{1}{2M}{\sum\limits_{i = 1}^{2M}L^{(i)}}}},{L^{(i)} = {{\left( {1 - y^{(i)}} \right){{z_{1}^{(i)} - z_{2}^{(i)}}}} + {y^{(i)}{\max \left( {{m - {{z_{1}^{(i)} - z_{2}^{(i)}}}},0} \right)}} + {\alpha \left( {{P\left( z_{1}^{(i)} \right)} + {P\left( z_{2}^{(i)} \right)}} \right)} + {{\beta \left( {{Q\left( z_{1}^{(i)} \right)} + {Q\left( z_{2}^{(i)} \right)}} \right)}.}}}}$

Here ∥⋅∥ is Euclidean norm. In this loss function, the first term forces the projected vectors of the same classes to the same value, and the second term forces the projected vectors of different classes to separate at least m in Euclidean distance. The remaining terms P(z) and Q(z) are the so-called “pq-regularizer” which is specially designed to help place all registered accounts into different regions and avoid ambiguity in quantization. These two terms are defined as follows:

${{P\left( z^{(i)} \right)} = {\sum\limits_{j = 1}^{B}{\max \left( {{{z_{j}^{(i)}} - p},0} \right)}}},{{Q\left( z^{(i)} \right)} = {\sum\limits_{j = 1}^{B}{\max \left( {{q - {z_{j}^{(i)}}},0} \right)}}},$

where p and q are hyperparameters, |zj(i)| is taking absolute value of the jth component of z^((i)). This regularizer forces each element of the projected vector z to reside in the region [−p, −q] or the region [+q, +p], which corresponds to the bit −1 and bit +1 in the hash code b_(i) after quantization. With a careful choice of m, a pair (z₁, z₂) of different accounts can be pushed to opposite regions, and hence, hashed to different binary codes, as shown in FIGS. 17A and 17B. One example choice of m through experimentation is p√{square root over (B)}, which is the Euclidean distance from the origin to the point z*=(p, p, . . . , p). This forces the hash code of signals of different accounts differ at least one bit. Experience shows that larger m helps separation, but hurts convergence. The hyperparameter α,β controls the portion of contribution of the regularizer in the total loss and gradients. This design philosophy of the deep hashing network differs from most related works that try to minimize quantization loss (i.e., forces the projected vector to be close to the nodes of Hamming hypercube). Instead, the input is mapped to a bounded Euclidean space and pushed away from the decision boundary z_(j)=0, where a relatively large region can be quantized to the same bit value regardless of the quantization error. The effectiveness of the disclosed regularizer relies on the assumption that ID strings are distinctive, which is true in an identification system, but not in an image retrieval system. Meanwhile, both the activation function and the regularizer are piece-wise linear, which is easier to compute and train compared to the saturation methods such as tanh or sigmoid relaxation commonly used in deep hashing.

Account Database and Procedures

As mentioned previously, each account contains a tuple of <ID, b^((I{circumflex over (D)})), h^((ID))>. At registration time, the system generates a unique ID number for the registered account. The user is asked to create an ID string and write it K times. The obtained K in-air-handwriting signals {x⁽¹⁾, x⁽²⁾, . . . , x^((K))} are utilized to train the framework. Once the training is finished, the training signals can be used to construct b^(ID) and h^(ID) as follows:

${h^{ID} = {{\sum\limits_{i = 1}^{K}h^{(i)}} = {\sum\limits_{i = 1}^{K}{f\left( x^{(i)} \right)}}}},{b^{ID} = {{g\left( h^{ID} \right)} = {{sign}\left( {{W\; h^{ID}} + c} \right)}}},$

where ƒ( ) is the deep neural network, g( ) is the projection and quantization process, and sign( ) is an element-wise sign function. A hash table is also constructed to index all account tuples using the hash codes b^(ID).

At identification time, given a preprocessed in-air-handwriting signal x′, the following steps are proceeded to obtain the account ID. First, the forward path of the framework is ran to obtain a latent vector h′ and b′. Second, the hash table is searched using b′ with a fuzziness tolerance of l bits. If l is 0, the hash table will simply be searched using b′. If l is not 0, the hash table is searched multiple times with each element of a collection of hash code S, where S contains all possible hash codes with a Hamming distance less than or equal to l bits from b′. The rationale is that the fuzziness in the writing behavior will eventually lead to errors that make b′ differ from the hash code of its real account, but this difference should be smaller than l bits. In practice, l is usually set to 1 or 2 in order to limit the total number of searches for a prompt response. In this way, a collection of candidate accounts will be obtained. The third step is to compare h′ with the latent vector of every candidate account to find the nearest neighbor. Finally, the account ID of this nearest neighbor is returned as the identified ID.

ID Verification

In this identification procedure described previously, the final nearest neighbor search step serves as a verification of the ID. Alternatively, the system may store a template of the handwriting of the ID string generated at registration for each account, instead of the h^(ID). Upon an identification request, the system can compare the signal in the request with the templates of all candidate accounts obtained by the hash table search and run a procedure similar to an authentication system to verify the candidate IDs. The motivation is that the hashing step loses information in the in-air-handwriting, which may lead to collisions if an imposter writes the same ID string as a legitimate user, and hence, a verification step can reduce misidentification significantly. Since the verification step is essentially an authentication system, it will not be elaborated on in the present disclosure. Besides, an attacker can create colliding signals if both the hash code b^(ID) and the parameters of the neural network are leaked because FMHashNet generates fuzzy hash codes instead of crypotographic hash codes.

In practice, b^(ID) can be hashed again using a cryptographic hash algorithm such as SHA-256 for the hash table, while searching with bit tolerance can still work (S contains cryptographically hashed elements of the original S). In this case, the cryptographic hash of b^(ID) is stored in the account database. Moreover, this cryptographic hash can be further used to generate a key to encrypt the template for the ID verification to further improve the security.

Experimental Evaluation of the Identification System

Dataset:

A dataset was collected of 200 accounts with 200 distinct in-air-handwriting ID strings, created by 100 users with exactly two accounts per user. For each account, the user wrote an ID string five times as registration and then five times as five independent identification tests. Roughly half of the users were college students (including both undergraduate and graduate students), and the other half were people of other various occupations (including both office workers and non-office workers). The contents of the ID strings were determined by the users and no two ID strings were identical. Most users chose a meaningful phrase for ease of memory and wrote the ID strings very quickly and illegibly for convenience. The amount of time to write an ID string in the air was usually between 3 to 8 seconds, depending on the complexity of the ID string that was chosen.

Implementation Detail:

The present framework may be implemented in TensorFlow on an Nvidia GTX 1080 Ti GPU. The weight parameters are initialized with the Xavier method and the Adam optimizer with an initial learning rate of 0.001 is used. The leaky ReLU negative slope is set to 0.2. The regularizer hyperparameter p is set to 10, q is set to 5. Based on experience, reasonably good results can be achieved with a wide range of different p and q values as long as p−q is larger than one. The inter-class distance m is set to p√{square root over (B)}, the hash code size B is 16, 32, 48 or 64. For the training protocol, the softmax layer and cross-entropy loss are first used with 1,000 iterations. Then, the projection layer and pair-wise loss are used with pq-regularizer for another 10,000 iterations. During these 10,000 iterations, α is set to 0.1 and β is initially set to 0.0001 for the first 4,000 iterations, then gradually increased 10 times every 2,000 iterations until it reaches 0.1. The training pairs are selected online, and MA is set to 200 in a mini-batch. For the pairs of the same account, an account and two training signals of that account are randomly selected; for the pairs of different accounts, the account hash code b^(ID) is calculated every 20 iterations for each account, and pairs are selected from those accounts whose hash codes differ less than three bits. If no such account exists, a pair of two signals from two different accounts is chosen at random.

Another major challenge that was encountered was the limited amount of training data (only five signals per account). To overcome this challenge, the training dataset was augmented into two steps. First, given K signals {x⁽¹⁾, x⁽²⁾, . . . , x^((K))} obtained at registration, for each x^((k)) in this set, all the other signals are aligned to x^((k)) to create K−1 additional signals using Dynamic Time Warping, and in total K² signals can be obtained (in experimental data, 25 signals were obtained). Second, two aligned signals are randomly picked and a random segment is exchanged to create a new signal. This step is repeated many times. This results with each account being assigned 125 training signals.

TABLE 2 Performance Comparison (with hash code side B = 16) average precision average recall miss-rate fail-rate training methods 0 bit 1 bit 2 bit 0 bit 1 bit 2 bit 0 bit 1 bit 2 bit 0 bit 1 bit 2 bit time DSH-like [16] 0.995 0.916 0.636 0.918 0.892 0.632 0.004 0.081 0.362 0.078 0.026 0.005 648 s tanh 0.970 0.821 0.494 0.443 0.638 0.474 0.014 0.139 0.484 0.544 0.223 0.042 637 s Ours 0.999 0.995 0.979 0.944 0.972 0.975 0.001 0.005 0.021 0.055 0.023 0.004 610 s

Empirical Results:

The neural network was trained with varied hash code size B=16, 32, 48, 64 and fuzziness tolerance l=0, 1, 2. In a single experiment, the neural network was trained from scratch with the 200×125 augmented training signals and ran the identification procedure with the 200×5 testing signals from the 200 accounts. Given a testing signal x of an account A, if x is correctly identified as account A, it is a true positive of account A; if it is wrongly identified as some other account B, it is a false negative of account A and false positive of account B, also counted as a misidentification; if it is not identified as any account, it is counted as a failure of identification. The performance metrics were average precision of all accounts (FIG. 18), average recall of all accounts (FIG. 19), misidentification rate (total number of misidentification divided by 200′5, FIG. 20), and failure of identification rate (total number of failure of identification divided by 200′5, FIG. 21). Due to the stochastic nature of neural network, the results were obtained by averaging the performance of five repetitions of the same experiment with the same parameter settings. The ID verification step was not included in this evaluation. These results show that the disclosed framework performs consistently in the user identification task on the present dataset with variable hash code size. In general, larger hash code sizes provide better security since it is more difficult to guess the hash code without knowing the writing content, but it is also more difficult to train due to the added parameters. Also, a larger fuzziness tolerance l leads to less failure of identification (i.e., improved recall) but more misidentification. In practical identification system, it is recommend to set l=0 without ID verification for simplicity or set l=2 with ID verification for better security.

Next the amount of fuzziness in the hash code as a result of the inherent variation in the in-air-handwriting is evaluated. As shown in FIG. 22A, 1.6% of the testing signals are hashed more than 2 bits away from their real accounts. Such fuzziness is mitigated by the separation of the hash codes of different classes, as shown in FIG. 22B, i.e., in 99% of the case the hash code of a signal of one account is at least three bits far away from the hash code of other accounts.

Then, the manner in which the hash codes of all accounts are placed in the Hamming space is studied. First, the distribution of zero and one of each bit in the hash code generated in an experiment is shown in FIG. 23A. There are roughly an equal amount of zeros and ones in each bit, indicating that the hash codes are evenly spread. Second, the correlation of every bit pair is shown in FIG. 23B. In FIG. 23B, the correlation is close to zero for every pair of bit i and j when i=6 j, indicating that each bit carries different information in the hash code. Third, the distribution of the distances of hash codes between any two accounts are shown in FIG. 24, where the minimum distance is 3 to 4 bits, the average is 7 to 8 bits, and the maximum is 13 to 14 bits. From this figure, it is illustrated that hash codes of the accounts are sparsely located in the Hamming space and the distance between any two accounts are at least a few bits away. This property of sparsity is the key for an identification system, and it comes from careful design of the regularizer.

Discussions

The present disclosure is designed as a pure convolutional neural network (CNN) on temporal normalized motion signals instead of a recurrent neural network (RNN) (which is commonly used in recent signature verification systems mainly for speed and simplicity). First, the present disclosure is essentially a way to input an account ID so it must be able to be retrained or fine-tuned within in a few minutes as new accounts are registered (which makes an RNN solution unsuitable). Second, it is difficult to fully learn the long term dependency of handwriting strokes with very limited data for an RNN. Third, to generate a hash code of fixed size representing the whole signal, an RNN needs to keep a large number of hidden states and use them to output the hash code after the last sample of the signal is processed, which further increases the difficulty of training because of the lengthy back-propagation-in-time process. Hence, a pure convolutional neural network solution as disclosed herein is a fine alternative to a recurrent neural network.

CONCLUSIONS

In this disclosure, a user login framework containing an multifactor authentication system and an identification system is described. The authentication system uses templates of both in-air-handwriting as well as hand geometry to match a login request to verify the identity of a user. The identification system can generate a compact binary hash code and efficiently locate an account in a database given a sample of in-air-handwriting of an ID string. The empirical results obtained from the present framework's evaluation demonstrate the feasibility of the described methods. The ability to convert a finger motion signal to fuzzy hash code gives the present framework great potential for sign-in over gesture input interface.

It should be understood from the foregoing that, while particular embodiments have been illustrated and described, various modifications can be made thereto without departing from the spirit and scope of the invention as will be apparent to those skilled in the art. Such changes and modifications are within the scope and teachings of this invention as defined in the claims appended hereto. 

What is claimed is:
 1. A system for identifying and authenticating a user, comprising: a hand motion tracking device, wherein the hand motion tracking device is operable for capturing a first position signal, a second position signal, and a hand geometry vector of a user's hand; and a processor in operative communication with the hand motion tracking device, the processor configured to execute instructions including: identifying an account associated with a first position signal, further comprising: generating a latent vector and a binary hash vector using the first position signal; identifying one or more candidate accounts using the binary hash vector; comparing the latent vector with a template latent vector associated with each of the one or more candidate accounts; and identifying an account associated with the template latent vector associated with one of the one or more candidate accounts which most closely matches the latent vector; and authenticating the user using the second position vector and the hand geometry vector, further comprising: defining a first distance value between the second position signal and a template position signal; defining a second distance value between the hand geometry vector and a template hand geometry vector; and evaluating an authentication request associated with the second position signal and the hand geometry vector based on the first distance value and the second distance value.
 2. The system of claim 1, wherein the step of defining the first distance value between the second position signal and the template position signal further comprises: aligning the second position signal with the template position signal to produce an aligned position signal; obtaining an element-wise distance vector representative of a plurality of distance values between each of a plurality of samples of the aligned position signal and each of a plurality of samples of the template position signal; mapping each of the plurality of distance values to a match label; and aggregating each of the plurality of match labels associated with each of the plurality of distance values to produce a final signal level distance value.
 3. The system of claim 1, wherein the authentication request associated with the second position signal and the hand geometry vector is accepted if the first distance value is below a threshold and wherein the authentication request is denied if the first distance value is above the threshold.
 4. The system of claim 3, wherein each of the plurality of template hand geometry vectors and each of the plurality of template position vectors are updated implicitly upon acceptance of the authentication request.
 5. The system of claim 1, wherein the step of identifying the account associated with the first position signal is at least partially performed using a neural network
 6. A system for identifying a user, comprising: a hand motion tracking device, wherein the hand motion tracking device is operable for capturing a position signal of a user's hand; and a processor in operative communication with the hand motion tracking device, the processor configured to execute instructions including: generating, by the processor, a latent vector associated with the position signal; quantizing the latent vector to obtain an associated binary hash vector; searching a hash table using the binary hash vector to obtain one or more candidate accounts, wherein the hash table comprises a plurality of accounts and wherein each of the plurality of accounts is associated with a template binary hash vector and a template latent vector; comparing the latent vector with each template latent vector associated with each of the one or more candidate accounts; and identifying an account associated with the template latent vector associated with one of the one or more candidate accounts which most closely matches the latent vector.
 7. The system of claim 6, wherein the steps of generating the latent vector and the binary hash vector associated with the position signal are performed using a neural network.
 8. The system of claim 7, wherein the neural network comprises: a plurality of convolutional and max-pooling layers; a fully connected layer following the plurality of convolutional and max-pooling layers, wherein the output of the fully connected layer is the latent vector; a projection layer, wherein the projection layer takes the latent vector as input and wherein the output of the projection layer is a projected vector; and a softmax layer in parallel with the projection layer, wherein the softmax layer is operable for training the convolutional neural network.
 9. The system of claim 8, wherein the hash vector is obtained from the projected vector by taking the sign of the projected vector for each of a plurality of elements of the projected vector.
 10. The system of claim 6, further comprising preprocessing the position signal, wherein the steps of preprocessing the signal comprise: applying linear interpolation to the position signal; deriving a velocity value and an acceleration value for each of a plurality of samples of the position signal; applying a low pass filter to the position signal; translate a coordinate system of the position signal such that an axis of the position signal corresponds to an average pointing direction of the hand; normalizing an amplitude of the position signal; and downsampling the position signal.
 11. The system of claim 6, wherein the user is authenticated upon identifying the nearest neighbor account using an authentication process, the authentication process comprising: defining a first distance value between a second position signal and a template position signal associated with the nearest neighbor account; defining a second distance value between a hand geometry vector and a template hand geometry vector associated with the nearest neighbor account; and evaluating an authentication request associated with the second position signal and the hand geometry vector based on the first distance value and the second distance value.
 12. The system of claim 6, further comprising a verification module, wherein the verification module is operable for verifying an accuracy of the identified account.
 13. The system of claim 6, wherein a cryptographic hash vector associated with the template binary hash vector of each of the plurality of accounts is used to generate a key, wherein each of the plurality of keys is configured for encrypting information associated with one of the plurality of accounts.
 14. A system for authenticating a user, comprising: a hand motion tracking device, wherein the hand motion tracking device is operable for capturing a position signal and a hand geometry vector of a user's hand; and a processor in operative communication with the hand motion tracking device, the processor configured to execute instructions including: defining a first distance value between the position signal and a stored template position signal, further comprising: aligning the position signal with the template position signal to produce an aligned position signal; obtaining an element-wise distance vector representative of a plurality of distance values between each of a plurality of samples of the aligned position signal and each of a plurality of samples of the template position signal; mapping each of the plurality of distance values to a match label; and aggregating each of the plurality of match labels associated with each of the plurality of distance values to produce a final signal level distance value; defining a second distance value between the hand geometry vector and a template hand geometry vector; and evaluating an authentication request associated with the position signal and the hand geometry vector based on the first distance value and the second distance value.
 15. The system of claim 14, further comprising pre-processing the position signal, wherein the steps of preprocessing the signal comprise: applying linear interpolation to the position signal; deriving a velocity value and an acceleration value for each of a plurality of samples of the position signal; applying a low pass filter to the position signal; translate a coordinate system of the position signal such that an axis of the position signal corresponds to an average pointing direction of the hand; down-sampling the position signal; and normalizing each of a plurality of columns of the position signal to zero mean and unit variance.
 16. The system of claim 14, wherein the steps of aligning the position signal to the template position signal comprise: applying dynamic time warping to the position signal and the template position signal to obtain a warping path; and calculating each of a plurality of samples of the aligned position signal by determining an average of one or more samples of the position signal mapped to each of a plurality of samples of the template position signal on the warping path;
 17. The system of claim 14, wherein the template position signal is associated with one of a plurality of accounts and wherein the account is chosen using an identification process, the process comprising: generating a latent vector and a binary hash vector associated with a second position signal; identifying one or more candidate accounts using the binary hash vector; comparing the latent vector with each template latent vector associated with each of the one or more candidate accounts; and identifying an account associated with the template latent vector associated with one of the one or more candidate accounts which most closely matches the latent vector.
 18. The system of claim 14, wherein the aggregation step further comprises determining a signal length differential value, and wherein the signal length differential value is representative of a difference in a signal length of the position signal and a signal length of the template position signal.
 19. The system of claim 18, wherein the signal length differential value and the second distance value are each given respective weights when evaluating the authentication request.
 20. The system of claim 14, wherein the authentication request associated with the position signal and the hand geometry vector is accepted if the first distance value is below a threshold and wherein the authentication request is denied if the first distance value is above the threshold. 